<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name='format-detection' content='telephone=no' />
    <title>人车人</title><link rel="icon" href="/assets/img/titleico.ico" type="image/x-icon">
    <link rel="stylesheet" href="/assets/css/common.css" />
    <link rel="stylesheet" href="/assets/css/iconfont/iconfont.css" />
    <style>
    	section{background-color: #f5f5f5;}
    	section .container p.title{padding: .4rem 2rem;background-color: #eaeaea;}
    	section .container .out{display: block;margin: 1rem auto;width: 90%;height: 3.2rem;line-height: 3.2rem;text-align: center;background-color: #fff;border-radius: 99px;border: 1px solid #007aff;color: #007aff;}
		section .container a.ppp{display: block;padding: 3% 0;width: 90%;text-align: center;margin: 3% auto;border-radius: 6px;background-color: #5cb85c;color: #fff;}
		section .container a.ppp:active{background-color: #59ab59;}
		
		#uploadpage .container {
			padding-bottom: 10%;
		}
		
		#uploadpage .container ul.ulcon li {
			padding: 0;
		}
		
		ul li.qrcode {
			margin: .6rem 0;
		}
		
		#uploadpage .container ul li.qrcode {
			padding: .8rem;
			-webkit-align-items: center;
			align-items: center;
			font-size: 1.4rem;
			box-sizing: border-box;
    		height: 4.6rem;
    		position: relative;
		}
		
		#uploadpage .container ul li.qrcode a.link {
			position: absolute;
			top: 0;
		    left: 0;
		    right: 0;
		    bottom: 0;
		}
		
		#uploadpage .container ul li.t_bor span {
			font-size: 1.4rem;
		}
		
		#uploadpage .container ul li.qrcode i.qrcode {
			padding-right: .4rem;
			font-size: 1.8rem;
    		color: #616161;
    		margin-top: 2px;
		}
		
		#uploadpage .container ul li.message {
			margin-bottom: .8rem
		}
		
		#uploadpage .container ul li.show .title {
			padding: .8rem;
			-webkit-align-items: center;
			align-items: center;
			box-sizing: border-box;
    		height: 4.6rem;
		}
		
		#uploadpage .container ul li.operator .hide p {
			padding: 0.8rem;
			margin-left: 0.8rem;
    		padding-left: 0;
		}
		
		#uploadpage .container ul li.operator .hide p i {
			font-size: 2rem;
		}
		
		#uploadpage .container ul li.operator .hide p.active i {
			color: #0051bc;
		}
		
		#uploadpage .container ul li.operator .hide p.active span {
			color: #0051bc;
		}
		
		
		#uploadpage .container ul li.show .hide {
			height: 0;
			overflow: hidden;
		}
		
		#uploadpage .container ul li.show .hide .msgbox {
			padding: .8rem .8rem .8rem 0;
			-webkit-align-items: center;
			align-items: center;
			box-sizing: border-box;
    		height: 4.6rem;
    		margin-left: .8rem;
		}
		
		#uploadpage .container ul li .msgtitle {
			margin-right: 1rem;
		}
		
		#uploadpage .container ul li.wordcard i.wordcard {
			margin-top: 0;
			font-size: 2.4rem;
		}
		
		#uploadpage .container ul li.show .hide .msgbox .pres {
			margin-right: 1rem;
		}
		
		#uploadpage .container ul li.show .hide .msgbox .citys {
			max-width: 38%;
		}
		
		#uploadpage .container ul li.show .hide .msgbox select {
			padding: .4rem;
		}
		
		#uploadpage .container ul li.upfile {
			position: relative;	
		}
		
		#uploadpage .container ul li.upfile .headimgbox {
			position: absolute;	
			top: .8rem;
		    right: 10%;
		    overflow: hidden;
		    width: 3rem;
	    	height: 3rem;
	    	border-radius: 4px;
		}
		
		#uploadpage .container ul li.upfile input {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			opacity: 0;
			z-index: 1;
		}
		
		.uploadloading {
			position: fixed;
			z-index: 15;
			width: 34%;
			background-color: rgba(0,0,0,.65);
			border-radius: 15px;
			top: 9999px;
			left: 50%;
			margin-left: -17%;
		}
		
		.uploadloading .loading {
			width: 2.2rem;
		    height: 2.2rem;
		    border-top: .3rem solid rgba(255,255,255, 0.2);
		    border-right: .3rem solid rgba(255,255,255, 0.2);
		    border-bottom: .3rem solid rgba(255,255,255, 0.2);
		    border-left: .3rem solid #ffffff;
		    border-radius: 50%;
		    position: absolute;
		    top: 50%;
		    left: 50%;
		    margin: -1.5rem 0 0 -1.5rem;
		}
		
		.uploadloading .animatie {
		    -webkit-animation: loading 1s infinite linear;
		    animation: loading 1s infinite linear;
		}
		
		#uploadpage .container ul li span {
			color: #333;
		}
		
		#uploadpage .container ul li.show .hide span {
			color: #606060;
		}
		
		.headUploadbox {
			position: fixed;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			display: none;
			z-index: 1;
			background-color: #000;
		}
		
		.headUploadbox .mask {
			position: absolute;
			z-index: 1;
			left: 0;
			right: 0;
			background-color: rgba(0,0,0,.6);
			text-align: center;
		}
		
		.headUploadbox .mask a {
			font-size: 1.8rem;
			color: #fff;
			padding: 15px;
		}
		
		.headUploadbox .mask a.cancel {
			margin-right: 10%;
		}
		
		.headUploadbox .mask a.ok {
			margin-left: 10%;
		}
		
		.headUploadbox .cut_window {
			position: absolute;
			z-index: 1;
			top: 50%;
			left: 50%;
			border: 1px solid #fff;
			margin-left: -50%;
			box-sizing: border-box;
			width: 100%;
			overflow: hidden;
		}
		
		.headUploadbox img {
			position: absolute;
			top: 50%;
		}
		
		.headUploadbox.trans img {
			-webkit-transition: .5s ease;
		    -ms-transition: .5s ease;
		    -o-transition: .5s ease;
		    -moz-transition: .5s ease;
		    transition: .5s ease;
		}
		
		canvas {
			display: none;
		}
    </style>
    <script src="/assets/js/jquery-3.1.1.min.js"></script>
</head>
<body>
	<!-- header start -->
    #@tabHead("个人中心",true)
    <!-- end header -->
	<div id="show-template" class="show-template trans">
		<div class="loading"></div>	
		<img src="" />
	</div>
	<div class="headUploadbox" id="headUploadbox">
		<img src="" width="100%" id="img" />
		<div class="cut_window"></div>
	</div>
	#@loadContainer()
	<div id="show-template" class="show-template trans">
		<div class="loading"></div>	
		<img src="" />
	</div>
	<div class="uploadloading" id="uploadloading">
		<div class="loading"></div>	
	</div>
   	<section id="uploadpage" class="visiblecon sectrans">
        <div class="container">
#if(user.progress == 1 || user.progress == 0)       	
			<a class="ppp" id="ppp" href="/userCenter/perfectMsg">请实名认证</a>
#end
#if(user.progress == 3)       	
			<a class="ppp" id="ppp" href="/userCenter/perfectMsg" style='background-color:#F0AD4E'>有反馈</a>
#end	
			<ul class="ulcon" id="ulcon">
<!-- 				<li class="upfile b_bor" id="headbox"> -->
<!-- 					<div class="title flexbox"> -->
<!-- 						<div class="icon" style="margin-right: 0;"> -->
<!-- 							<i class="iconfont showimg show-hook">&#xe664;</i> -->
<!-- 						</div> -->
<!-- 						<span>头像</span> -->
<!-- 						<i class="iconfont look ac" style="opacity: 0;">&#xe623;</i> -->
<!-- 					</div> -->
<!-- 					<div class="upbox flexbox"> -->
<!-- 						<div class="uplabel"> -->
<!-- 							<div class="showimg"> -->
<!-- 								<img src="" width="100%" class="headimg" /> -->
<!-- 							</div> -->
<!-- 							<div class="loadingbox flexbox hide"> -->
<!-- 								<div class="loading"></div> -->
<!-- 							</div> -->
<!-- 							<i class="iconfont" style="font-size: 6.6rem;">&#xe651;</i> -->
<!-- 							<p class="up">点击上传</p> -->
<!-- 							<form enctype="multipart/form-data"> -->
<!-- 								<input name="headPhoto_1" type="file" accept="image/jpg, image/jpeg, image/png, image/gif"> -->
<!-- 							</form> -->
<!-- 						</div> -->
<!-- 					</div> -->
<!-- 				</li> -->
				<li class="qrcode ac t_bor b_bor flexbox upfile" id="headbox">
					<input name="headPhoto_1" id="headupload" type="file" accept="image/jpg, image/jpeg, image/png, image/gif">
					<span class="flex">头像</span>
					<div class="headimgbox">
						<img src="" class="headimg" width="100%" />
					</div>
					<i class="iconfont">&#xe61d;</i>
				</li>
#if(user.progress == 4)
				<li class="qrcode ac t_bor b_bor flexbox show-hook" id="qrcode">
					<span class="flex">我的二维码</span>
					<i class="iconfont qrcode">&#xe609;</i>
					<i class="iconfont">&#xe61d;</i>
				</li>
				<li class="message t_bor b_bor show" id="message" show="false">
					<div class="title flexbox ac">
						<span class="flex">个人信息</span>
						<i class="iconfont rotate-hook trans">&#xe61d;</i>
					</div>
					<div class="hide trans">
						<div class="msgbox b_bor flexbox" paramtername="userName"><span class="msgtitle">姓名:</span><p></p></div>
						<div class="msgbox b_bor flexbox" paramtername="userPhone"><span class="msgtitle">手机号码:</span><p></p></div>
						<div class="msgbox b_bor flexbox" paramtername="idNo"><span class="msgtitle">身份证:</span><p></p></div>
						<div class="msgbox b_bor flexbox" paramtername=""><span class="msgtitle">年龄:</span><p></p></div>
						<div class="msgbox b_bor flexbox" paramtername=""><span class="msgtitle">性别:</span><p></p></div>
						<div class="msgbox flexbox" paramtername=""><span class="msgtitle">区域:</span><select class="pres" id="pres"><option value="">--请选择--</option></select><select class="citys" id="citys"><option value="">--请选择--</option></select><input type="hidden" name="cooperateArea" id="cooperateArea" /></div>
					</div>
				</li>	
#end
				<li class="message t_bor b_bor show" show="false">
					<div class="title flexbox ac">
						<span class="flex">银行卡信息</span>
						<i class="iconfont rotate-hook trans">&#xe61d;</i>
					</div>
					<div class="hide trans">
						<div class="msgbox b_bor flexbox"><label for="bankName" class="msgtitle">开户行:</label><input type="text" class="flex" name="bankName" id="bankName"/></div>
						<div class="msgbox b_bor flexbox"><label for="bankCard" class="msgtitle">卡号:</label><input type="tel" class="yz flex" name="bankCard" id="bankCard"/></div>
					</div>
				</li>
				<li class="qrcode wordcard ac t_bor b_bor flexbox " id="workReg">
					<span class="flex">工作牌</span>
					<i class="iconfont qrcode wordcard">&#xe612;</i>
					<i class="iconfont">&#xe61d;</i>
				</li>
				<li class="qrcode wordcard ac t_bor b_bor flexbox show-hook">
					<span class="flex">修改密码</span>
					<a class="link" href="/login/passwordReset"></a>
					<i class="iconfont">&#xe61d;</i>
				</li>
				<li class="qrcode wordcard ac t_bor b_bor flexbox show-hook">
					<span class="flex">实名认证</span>
					<a class="link" href="/userCenter/certification"></a>
					<i class="iconfont">&#xe61d;</i>
				</li>
				<li class="operator t_bor b_bor show" show="false" id="operator">
					<div class="title flexbox ac">
						<span class="flex">运营商</span>
						<span class="ok-hook" style="display: none;margin-right: 1rem;color: #9E9E9E;"></span>
						<i class="iconfont err-hook" style="color: #d9534f;display: none;margin-right: 1rem;">&#xe618;</i>
						<i class="iconfont rotate-hook trans">&#xe61d;</i>
					</div>
					<div class="hide trans">
						<p class="b_bor" data-operator="云网滇盟">
							<i class="iconfont">&#xe641;</i>
							<span>云网滇盟</span>
						</p>
						<p class="b_bor" data-operator="嘉腾车贷">
							<i class="iconfont">&#xe641;</i>
							<span>嘉腾车贷</span>
						</p>
						<p class="b_bor" data-operator="温州信聚隆">
							<i class="iconfont">&#xe641;</i>
							<span>温州信聚隆</span>
						</p>
						<p class="b_bor" data-operator="陕西金知珠">
							<i class="iconfont">&#xe641;</i>
							<span>陕西金知珠</span>
						</p>
						<p class="b_bor" data-operator="常州万通">
							<i class="iconfont">&#xe641;</i>
							<span>常州万通</span>
						</p>
						<p class="b_bor" data-operator="杭州嘉业">
							<i class="iconfont">&#xe641;</i>
							<span>杭州嘉业</span>
						</p>
						<p data-operator="福建融顺">
							<i class="iconfont">&#xe641;</i>
							<span>福建融顺</span>
						</p>
					</div>
				</li>
			</ul>
<!-- 	        <a href="/login/passwordReset" class="out">修改密码</a> -->
	        <a href="/userCenter/logout" class="out">退出当前账号</a>
        </div>
    </section>
    <!-- footer start -->
	#--#@footer(2)--#
	<!-- end footer -->
	
	<script src="/assets/js/area.js"></script>
    <script src="/assets/js/axios.min.js"></script>
    <script src="/assets/js/xxsg.js"></script>
    <script src="/assets/js/exif.min.js"></script>
    <script src="/assets/js/headupload.js"></script>
    <script>
	    $(function(){
    		var progress = #(user.progress),
    			ulDom = $("#ulcon"),
   				accept = "image/jpg, image/jpeg, image/png, image/gif",
   				uploadloading = $("#uploadloading");//上传等待
   			uploadloading.css({
   				"height": uploadloading.width(),
   				"margin-top": - uploadloading.width() / 2,
   				"top": "50%",
   				"display": "none"
   			})
   			if(_x.isAndroid()){
   				accept = "image/*"
   				ulDom.find("input[type=file]").each(function(){
   					$(this).attr("accept",accept)
   				})
   			}
    		//if(progress != 4)return;
			/*$.ajax({
	            "type":"post",
	            "url": "/userCenter/getPersonDataInfo",
	            "success":function(data){  
	            	console.log(data)
	            	getBaseTab(data,showSuc);
	            }
	        })*/
	        showSuc()
	        
	        //省份初始化
	        var presDom = $("#pres"),
	        	citysDom = $("#citys")
	        for(var i = 0;i < XXarea.pres.length;i++){
	        	presDom.append("<option value='"+ XXarea.pres[i] +"'>"+ XXarea.pres[i] +"</option>")
	        }
			
	        presDom.change(function(){
	        	var val = $(this).val(),
	        		cityIndex = XXarea.presMap[val]
	        	citysDom.html("<option value=''>--请选择--</option>")
	        	saveData({cooperateArea:val})
	        	if(_x.isEmpty(val))return
	        	for(var i = 0;i < XXarea.citys[cityIndex].length;i++){
	        		citysDom.append("<option value='"+ XXarea.citys[cityIndex][i] +"'>"+ XXarea.citys[cityIndex][i] +"</option>")
	        	}
	        })
	        
	        citysDom.change(function(){
	        	var val = $(this).val()
	        	saveData({cooperateArea:presDom.val() +","+ val})
	        })
	        
	        
	      	
            
            //上传
            function upload_file(file,fileDom){
                var xhr = new XMLHttpRequest(),
                    formData = new FormData();
                formData.append(fileDom.attr("name"),file);
                xhr.open("post","/userCenter/submitFile",true);
                xhr.addEventListener("load",function(){
                    var result = JSON.parse(this.response);
                    console.log(result)
                    $("#headbox").find("img.headimg").attr("src","/")
                    $("#headbox").find("img.headimg").attr("src",result.src)
                    uploadloading.hide().children().removeClass("animatie"); 
                    _x.showTip("上传成功！");
                });
                
                xhr.addEventListener('error',function(e){//监听XMLHttpRequest对象的progress事件，读取完毕后触发
                	_x.showTip("上传失败,请检查您的网络！");
                });
                
                xhr.send(formData);
            };
           
	       
	        /*function getBaseTab(data,callback){
	        	var html = "<li class='b_bor' isshow='false'>"+
	        			   "	<div class='flexbox tit'>"+
		        		   "		<p class='name'>车抵贷</p>"+
		        		   "		<p class='fut'>业绩量："+ data.more.total +"</p>"+
		        		   "		<p class='fut wd'>成交率："+ (data.more.successRate) / 100 +"%</p>"+
	        			   "		<i class='iconfont trans'>&#xe61d;</i>"+
	        			   "	</div>"+
	        			   "	<div class='hide trans'>"+
	        			   "		<div class='msg b_bor'><p>总订单量：</p><span>"+ data.more.total +"</span></div>"+
	        			   "		<div class='msg b_bor'><p>成交订单量：</p><span>"+ data.more.success +"</span></div>"+
	        			   "		<div class='msg b_bor'><p>逾期订单量：</p><span>"+ data.more.overdue +"</span></div>"+
	        			   "		<div class='msg b_bor'><p>总业绩：</p><span>"+ data.more.totalAmount +"</span></div>"+
	        			   "		<div class='msg b_bor'><p>当月业绩：</p><span>"+ data.more.monthAmount +"</span></div>"+
	        			   "		<div class='msg b_bor'><p>成交率：</p><span>"+ (data.more.successRate) / 100 +"%</span></div>"+
	        			   "		<div class='msg'><p>逾期率：</p><span>"+ data.more.overdueRate +"%</span></div>"+
	        			   "	</div>"+
	        		       "</li>";
				ulDom.append(html);
				callback();
			}*/
	        
	        function showSuc(){
    			$("#uploadpage").removeClass("visiblecon");
    			$("#load-container").removeClass("load7");
        	}
	        
	        /*ulDom.on("click","li.b_bor",function(){
	        	var that = $(this),
	        		isshow = that.attr("isshow"),
	        		hideDom = that.children(".hide");
	        	if(isshow == "false"){
	                that.attr("isshow",true);
	                that.children(".tit").children("i").addClass("rotate");
	                var h = hideDom[0].scrollHeight;
	               	hideDom.css("height",h);
	            }else{
	                that.attr("isshow",false);
	                that.children(".tit").children("i").removeClass("rotate");
	                hideDom.css("height",0);
	            }
	        })*/
	        //模板展示
         	var templateDom = $("#show-template"),
         		$win_Width = $(window).width(),
         		$win_Height = $(window).height(),
         		templateImg = null;
         	templateDom.on("touchmove",function(e){
         		e.preventDefault();
         	});
         	//关闭
         	templateDom.on("click",function(){
         		templateImg = null;
         		$(this).removeClass("visible");
         		$(this).children(".loading").removeClass("animatie").hide();
         	});
         	//解决长按图片不关闭
         	templateDom.children("img").on("click",function(e){
         		e.stopPropagation()
         	})
         	templateDom.on("transitionend",function(){
         		if(!$(this).hasClass("visible")){
         			$(this).children("img").attr("src","").removeClass("show");
         		}
        	})
	        
        	ulDom.find(".show-hook").click(function(e){
        		templateDom.addClass("visible");
            	templateDom.children(".loading").addClass("animatie").show();
        	})
        	
        	function saveData(json){
         		var params = {
         			params: json
         		}
         		axios.get("/userCenter/submit",params)
         		.then(function(res){
         			console.log(res)
         		})
         	}
         	
         	//获取二维码
         	$("#qrcode").click(function(){
         		var that = $(this),
         			src = that.attr("qrcode")
         		if(_x.isEmpty(src)){
	         		axios.post("/userCenter/qrTwo")
	         		.then(function(res){
	         			console.log(res.data)
	         			if(res.data.code == 1){
	         				var image = new Image()
	         				that.attr("qrcode",res.data.src)
	         				templateDom.addClass("visible");
	                    	templateDom.children(".loading").addClass("animatie").show();
	                    	image.src = res.data.src;
	                    	
	                    	image.onload = function(){
	                    		templateDom.children(".loading").removeClass("animatie").hide();
	                    		templateDom.children("img").css({
	                    			"position": "relative",
	                    			"top": "50%",
	                    			"left": "50%",
	                    			"transform": "translate(-50%,-50%)",
	                    			"opacity": 1
	                    		}).attr("src",this.src)
	                    	}
	         			}else{
	         				_x.showTip(res.data.src)
	         			}
	         		})
         		}else{
         			templateDom.addClass("visible");
         			templateDom.children(".loading").removeClass("animatie").hide();
            		templateDom.children("img").css({
            			"position": "relative",
            			"top": "50%",
            			"left": "50%",
            			"transform": "translate(-50%,-50%)",
            			"opacity": 1
            		}).attr("src",src)
         		}
         	})
         	//获取工牌
         	$("#workReg").click(function(){
         		axios.get("/userCenter/workReg")
         		.then(function(res){
         			if(res.data.code==1){
         				location.href=res.data.src
         			}else{
         				_x.showTip(res.data.src)
         			}
         		})
         	})
         	
     		
         	axios.post("/userCenter/getPersonInfo")
     		.then(function(res){
     			console.log(res.data)
     			var area = []
     			for(var i = 0;i < res.data.length;i++){
     				var data = res.data[i]
     				if(data.zhExpl === "区域"){
     					if(!_x.isEmpty(data.value)){
	     					area = data.value.split(",")
     					}
     				}
     				if(data.zhExpl === "头像"){
     					if(!_x.isEmpty(data.value)){
     						$("#headbox").find("img.headimg").attr("src",data.value)
     					}else{
     						$("#headbox").find("img.headimg").attr("src","/assets/img/defaultHead.jpg")
     					}
     				}
     				
     				if(data.zhExpl === "银行卡号" && !_x.isEmpty(data.value)){
     					$("#bankCard").attr("readonly",true).val(data.value)
     				}
     				
     				if(data.zhExpl === "开户银行" && !_x.isEmpty(data.value)){
     					$("#bankName").attr("readonly",true).val(data.value)
     				}
     				
     				$("#message").find("div.msgbox[paramtername='"+ data.paramterName +"']").children("p").text(data.value)
     			}
     			
     			
     			/* 区域填充 */
     			if(_x.isEmpty(area[0]))return
     			presDom.children().each(function(){
     				if($(this).val() === area[0]){
     					$(this).prop("selected",true)
     					return false
     				}
     			})
     			
     			var cityIndex = XXarea.presMap[area[0]]
     			for(var i = 0;i < XXarea.citys[cityIndex].length;i++){
     				var selected = "";
     				if(XXarea.citys[cityIndex][i] === area[1]){
     					selected = "selected='true'";
     				}
	        		citysDom.append("<option value='"+ XXarea.citys[cityIndex][i] +"' "+ selected +">"+ XXarea.citys[cityIndex][i] +"</option>")
	        	}
     		})
     		
     		//点击展开
     		ulDom.children("li.show").children(".title").click(function(){
     			var that = $(this).parent(),
     				hideDom = that.children(".hide"),
     				h = hideDom[0].scrollHeight,
     				iDom = that.find(".rotate-hook")
     			if(that.attr("show") == "false"){
     				that.attr("show",true)
     				var hideDom = that.children(".hide"),
     					h = hideDom[0].scrollHeight
     				hideDom.css("height",h)
     				iDom.css("transform","rotate(90deg)")
     			}else{
     				that.attr("show",false)
     				hideDom.css("height",0)
     				iDom.css("transform","rotate(0)")
     			}
     		})
     		
     		  
     		$("#bankName,#bankCard").change(function(){
     			var json = {}
     			json[$(this).attr("name")] = $(this).val()
     			saveData(json)
     		})
     		
     		var headUpload = new selectHeadImg()
         	headUpload.init({
				el: $("#headUploadbox"),
				fileDom: $("#headupload"),
				headImgDom: $("img.headimg")
			})
			
			// 获取运营商
			axios.post("/userCenter/getMyInfo").then(function (res) {
				if (res.data.operator === "未选择") {
					$("#operator").find(".err-hook").show()
				} else {
					$("#operator").find(".ok-hook").html(res.data.def_operator).show()
					$("#operator").find("p[data-operator='"+ res.data.operator +"']").addClass("active")
				}
			})
     		
			$("#operator").children(".hide").children("p").click(function(){
				$(this).addClass("active").siblings().removeClass("active")
				var val = $(this).data("operator")
				axios.post("/userCenter/submit", _x.qsStringify({def_operator: val})).then(function(res){
					if (res.data.code === 1) {
						$("#operator").find(".ok-hook").html(val).show().siblings(".err.hook").hide()
					} else {
						_x.showTip(res.data.msg)
					}
				})
			})
			
		});
    </script>
    </body>
</html>